<?php
$router->group(['prefix' => 'admin/oms'], function () use ($router) {
    
    $router->group(['prefix' => 'files'], function () use ($router) {
        $router->get('upload', 'OmsFileController@uploadFiles')->name('admin.oms.file.upload');
        $router->post('deleteUploadFile/{id}', 'OmsFileController@deleteUploadFile')->name('admin.oms.file.deleteUploadFile');

        $router->get('download', 'OmsFileController@downFiles')->name('admin.oms.file.download');
        $router->post('deleteDownFile/{id}', 'OmsFileController@deleteDownFile')->name('admin.oms.file.deleteDownFile');

        $router->get('syncModal', 'OmsFileController@syncModal')->name('admin.oms.file.syncModal');
        $router->post('syncData', 'OmsFileController@syncData')->name('admin.oms.file.syncData');

    });

    $router->get('syncStock', 'OmsFileController@syncStock')->name('admin.oms.file.syncStock');

    $router->get('logs/syncLogs', 'OmsFileController@syncLogs')->name('admin.oms.file.syncLogs');
    $router->get('logs/show/{id}', 'OmsFileController@showLogs')->name('admin.oms.file.showLogs');
    
    $router->get('ftpSetting', 'OmsFileController@ftpSetting')->name('admin.oms.ftpSetting');
    $router->post('saveSettings', 'OmsFileController@saveSettings')->name('admin.oms.saveSettings');    
    
});